package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.ChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lzq
 * @data 2023/5/9 16:23
 */
public interface AdWmChannelService extends IService<WmChannel> {
    /**
     * 查看所有频道
     * @param dto
     * @return
     */
    public ResponseResult list( ChannelDto dto);

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult del(Integer id);

    /**
     * 新增频道
     * @param wmChannel
     * @return
     */
    ResponseResult saveChannel(WmChannel wmChannel);

    /**
     * 频道修改
     * @param wmChannel
     * @return
     */
    ResponseResult updateChannel(WmChannel wmChannel);
}
